<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:form>    
        <ui:composition>
            <h:form>
                <p:menubar> 
                    <p:submenu label="Movimentos" >
                        <p:menuitem value="Novo" action="#{movimentoController.prepareCreate}" ajax="false"/> 
                        <p:menuitem value="Lista de Utilizadores " action="#{movimentoController.prepareList}" ajax="false"/> 
                    </p:submenu>

                    <p:submenu label="Contas" >
                        <p:menuitem value="Novo"  action="#{contaController.prepareCreate}" ajax="false"/> 
                        <p:menuitem value="Lista" action="#{contaController.prepareList}" ajax="false" />                       
                    </p:submenu>
                                
                     <p:submenu label="Tipo de Conta" >
                        <p:menuitem value="Nova"  action="#{tipoContaController.prepareCreate}" ajax="false"/> 
                        <p:menuitem value="Lista" action="#{tipoContaController.prepareList}" ajax="false" />                       
                    </p:submenu>
                    
                    <p:submenu label="Moedas" >
                        <p:menuitem value="Nova"  action="#{moedaController.prepareCreate}" ajax="false"/> 
                        <p:menuitem value="Lista" action="#{moedaController.prepareList}" ajax="false"/>
                    </p:submenu>
                    
                </p:menubar>
            </h:form>
        </ui:composition>
    </h:form>

</html>